package com.yunfeisoft.business.service.impl;

import com.yunfeisoft.business.dao.inter.ElderDao;
import com.yunfeisoft.business.model.Elder;
import com.yunfeisoft.business.service.inter.ElderService;
import com.yunfeisoft.common.base.BaseServiceImpl;
import com.yunfeisoft.common.utils.Page;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * ClassName: ElderServiceImpl
 * Description: 老人入院登记表service实现
 * Author: Jackie liu
 * Date: 2020-01-13
 */
@Service("elderService")
public class ElderServiceImpl extends BaseServiceImpl<Elder, String, ElderDao> implements ElderService {

    @Override
    public Page<Elder> queryPage(Map<String, Object> params) {
        return getDao().queryPage(params);
    }

    /**
     * 分页查询我的审批列表
     * @param params
     * @return
     */
    @Override
    public Page<Elder> myApprovalList(Map<String, Object> params) {
        return getDao().myApprovalList(params);
    }

    @Override
    public List<Elder> listAll(Map<String, Object> params) {
        return getDao().listAll(params);
    }
}